<script type='text/javascript'>
parent.showDialog('$msg','right','',function(){{$str}});
</script>